package com.lizy.edb.connection;

import java.util.List;

public class RabbitResource {
    /**
     * RabbitMQ连接信息
     */
    List<RabbitConnectionInfo> connectionInfos;
    /**
     * 队列名
     */
    private String queueName;
    /**
     * 路由
     */
    private String routingKey;
    /**
     * 交换器
     */
    private String exchangeName;

    public RabbitResource(List<RabbitConnectionInfo> connectionInfos, String queueName) {
        this.connectionInfos = connectionInfos;
        this.queueName = queueName;
    }

    public RabbitResource(List<RabbitConnectionInfo> connectionInfos, String queueName, String routingKey, String exchangeName) {
        this.connectionInfos = connectionInfos;
        this.queueName = queueName;
        this.routingKey = routingKey;
        this.exchangeName = exchangeName;
    }

    public RabbitResource(List<RabbitConnectionInfo> connectionInfos, String routingKey, String exchangeName) {
        this.connectionInfos = connectionInfos;
        this.routingKey = routingKey;
        this.exchangeName = exchangeName;
    }

    public List<RabbitConnectionInfo> getConnectionInfos() {
        return connectionInfos;
    }

    public String getQueueName() {
        return queueName;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public String getExchangeName() {
        return exchangeName;
    }
}
